From: Robert Lipe Date: Mon, 3 Dec 2018 06:46:02 +0000 (-0600) Subject: Warning fix in locus X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~8^2~51^2~9 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22Program/%22http:/www.example.com/cgi/%22https:/%22Program?a=commitdiff_plain;h=0a44f0132bbacece5313a510eb2ea7b365a951be;p=gpsbabel.git Warning fix in locus --- diff --git a/mtk_locus.cc b/mtk_locus.cc index ab7f4335a..23c322a0c 100644 --- a/mtk_locus.cc +++ b/mtk_locus.cc @@ -325,7 +325,6 @@ process_packet() void process_pmtklox() { - int hexval; uint8_t fixbytes[16]; static Waypoint* trkpt; static Waypoint* waypt; @@ -384,6 +383,7 @@ process_pmtklox() return; } for (int i = 0; i<4; i++) { + unsigned int hexval; sscanf(&token[i * 2], "%2x", &hexval); fixbytes[bytenum++] = hexval; calculated_checksum ^= hexval;